package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface EventhazardDAO extends JpaDao<Eventhazard> {

	public Eventhazard findEventhazardById(Integer id) throws DataAccessException;

	public Eventhazard findEventhazardById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByName(String name) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByNameContaining(String name_1) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Eventhazard> findEventhazardByDescription(String description) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Eventhazard> findEventhazardByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Eventhazard> findEventhazardByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Eventhazard findEventhazardByPrimaryKey(Integer id) throws DataAccessException;

	public Eventhazard findEventhazardByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Eventhazard> findEventhazardsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Eventhazard> findAllEventhazards() throws DataAccessException;

	public Set<Eventhazard> findAllEventhazards(int startResult, int maxRows) throws DataAccessException;

	public Set<Eventhazard> findEventhazardsByEvent(Integer eventId, int start, int max);

	public Set<Eventhazard> findEventhazardsByHazard(Integer hazardId, int start, int max);

	public Set<Eventhazard> findEventhazardByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Eventhazard> findEventhazardsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Eventhazard findEventhazardByPhysicalPrimaryKey(Integer eventId, Integer hazardId)
			throws DataAccessException;

	public Eventhazard findEventhazardByPhysicalPrimaryKey(Integer eventId, Integer hazardId, int startResult,
			int maxRows) throws DataAccessException;
}
